.class Lcom/teewoo/app/bus/ui/ChangeDetailActivity$2;
.super Ljava/lang/Object;
.source "ChangeDetailActivity.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/teewoo/app/bus/ui/ChangeDetailActivity;


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$2;->this$0:Lcom/teewoo/app/bus/ui/ChangeDetailActivity;

    .line 125
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 5
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 130
    .local p1, listView:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    check-cast p1, Landroid/widget/ListView;

    .end local p1           #listView:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    invoke-virtual {p1, p3}, Landroid/widget/ListView;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/Section;

    .line 131
    .local v2, sect:Lcom/teewoo/app/bus/model/Section;
    new-instance v1, Landroid/content/Intent;

    iget-object v3, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$2;->this$0:Lcom/teewoo/app/bus/ui/ChangeDetailActivity;

    invoke-static {v3}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->access$2(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;)Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/teewoo/app/bus/ui/StationInLineDetailActivity;

    invoke-direct {v1, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 132
    .local v1, newIntent:Landroid/content/Intent;
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 133
    .local v0, bundle:Landroid/os/Bundle;
    const-string v3, "com.teewoo.app.bus.station.in.line.detail"

    invoke-virtual {v0, v3, v2}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V

    .line 134
    invoke-virtual {v1, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 135
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$2;->this$0:Lcom/teewoo/app/bus/ui/ChangeDetailActivity;

    invoke-virtual {v3, v1}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->startActivity(Landroid/content/Intent;)V

    .line 136
    return-void
.end method
